package com.broadsoft.cluster.smartcluster;

import org.jgroups.util.Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SerializableHelper {

    private static final Logger logger = LoggerFactory.getLogger(SerializableHelper.class);
    
    
    public static Object objectFromByteBuffer(byte[] buffer) {
        Object payload = null;
        try {
            payload = Util.objectFromByteBuffer(buffer);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return payload;
    }
}
